package cupk.abner.ConcreteHandler;

import cupk.abner.Approver;
import cupk.abner.PurchaseRequest;

public class VicePresident extends Approver {
    public VicePresident(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if(request.getAmount()<100000){
            System.out.println("副董事长"+name+"审批采购单："+request.getNumber()+"，金额："+request.getAmount()+"元，采购目的："+request.getPurpose());
        }else{
            successor.processRequest(request);
        }
    }
}